package com.pan.admin.module.channel.service;

import com.pan.admin.module.channel.entity.LoanChannelFormField;

import java.util.List;

/**
 * 渠道关联动态单组Service接口
 *
 * @author ts
 * @date 2023-09-15
 */
public interface LoanChannelFormFieldService {

    /**
     * 根据ID获取列表渠道关联动态单组
     *
     * @param id 渠道关联动态单组主键
     * @return 渠道关联动态单组
     */
    LoanChannelFormField getById(Long id);

    /**
     * 查询渠道关联动态单组列表
     *
     * @param loanChannelFormField 渠道关联动态单组
     * @return 渠道关联动态单组集合
     */
    List<LoanChannelFormField> list(LoanChannelFormField loanChannelFormField);


    List treeList(LoanChannelFormField loanChannelFormField);

    /**
     * 新增渠道关联动态单组
     *
     * @param loanChannelFormField 渠道关联动态单组
     * @return 结果
     */
    int insertLoanChannelFormField(LoanChannelFormField loanChannelFormField);

    /**
     * 修改渠道关联动态单组
     *
     * @param loanChannelFormField 渠道关联动态单组
     * @return 结果
     */
    int updateLoanChannelFormField(LoanChannelFormField loanChannelFormField);

    int delete(List<LoanChannelFormField> loanChannelFormFields);

    /**
     * 删除渠道关联动态单组
     *
     * @param id 渠道关联动态单组主键
     * @return 结果
     */
    int deleteById(Long id);

    /**
     * 批量删除渠道关联动态单组
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int batchDeleteById(Long[] ids);

    int addTree(LoanChannelFormField loanChannelFormField);
}
